import {req, fileUpload,req3} from "./req";
import srm from "@/views/financeManager/api"; //供应链金融系统模块
import aul from "@/views/appointmentUnloading/api"; //预约卸货模块

let api = {
    resetPassword: (data) => req('srm','post','ralAccountSupplier/resetPassword', data), //重置密码接口
    retrievePassword: (data) => req('auth','get','account/retrieve', data), //重置密码Idm接口
    modifyPassword: (data) => req('auth','get','account/modifypwd', data,true), //修改密码Idm接口
    login: (data) => req('authLogin', 'post', 'account/login', data),//登录新接口
    getTimestamp: (data) => req('authLogin','post', 'account/getTimeStamp', data, true),//获取服务器时间戳
    userLogout: (data) => req('authLogin', 'post', 'account/exit', data), //用户退出登录,
    getToken: (data) => req('authLogin','get', 'account/register', data,true), //获取登录token
    validatePassword: (data) => req('auth', 'post', 'account/authenticate', data), //验证旧密码
    editPassword:(data)=>req('auth','put', `authUser?userkey=${data.userkey}&tokenkey=${data.tokenkey}` ,data,false,true), //修改用户密码
    editPasswordIdm:(data)=>req('srm','post','ralAccountSupplier/updatePassword',data,false), //修改用户密码  
    saveCustomStyle:(data) => req('auth','post','account/saveTableStyle',data),//保存agGrid自定义样式 2019-05-02
    getCustomClassStyle:(data) => req('auth','post','account/getTableStyle',data),//获取agGrid自定义样式 2019-05-02
    validateAccount: (data) => req('srm','get','ralAccountSupplier/isChildAccount',data,true,false), 
    checkAccountId: (data) => req('srm','get','ralAccountSupplier/checkAccountIDExist',data,true,false), 

    // 获取临时使用信息
    getEnabled: (data) => req('srm','get','temp/getEnabled',data,true,false), 


    
    //获取文件完整路径
    getFullFilePath: (data) => req3({
        baseUrl: 'fin',
        method: 'post',
        url: '/tblFinSrmAttachment/download',
        params: data
    }),
    //根据登录账号获取数据菜单
    getMenu:(data) => req('auth','post','authResource/getUserAuthResource',data,false),
    // 获取用户菜单权限新
    getUserAuthMenu: (data) => req('authLogin','post','authMenu/getUserAuthMenu',data,false),
    //获取SRM公司主数据
    getCompanyInfo:(data) => req('srm','get','mstCompany/getCompanySRMInfo',data,false),
    //停用/启用SRM公司主数据
    delCompanyInfo:(data) => req('srm','delete','mstCompany',data,false),
    //新增SRM公司主数据
    addCompanyInfo:(data) => req('srm','post','mstCompany',data,false),
    //编辑SRM公司主数据
    editCompanyInfo:(data) => req('srm','put','mstCompany',data,false,true),
    //文件上传
    upLoadFile:(data) => req('srm','post','upload/file',data,false),
    //文件下载
    downLoadFile:(data) => req('srm','post','upload/download',data,false),
    //文件下载
    fastDfsDownLoad:(data) => req('srm','post','uploadFastdfs/downFile',data,false),
    //文件批量下载
    totalDownload:(data) => req('srm', 'post', 'batchDownload',data,false,false,false,true),
     //删除文件
    deletedFastdfsFile:(data) => req('srm', 'post', 'uploadFastdfs/delFile',data,false,true,true),
    //根据条件获取sap公司信息
    getSAPCompanyInfo:(data) => req('srm','get','mstCompany/getCompanySAPInfo',data,false),
    //获取服务器时间
    getServerTime:(data) => req('srm','get','mstCompany/getServerTime',data,false),
    
    
    //获取供应商信息（根据mainaccount获取supplierCode）
    getSupplier:(data) => req('srm','get','mstSupplier/getSDetailByAct',data,false),
    //获取供应商信息
    getSupplierInfo:(data) => req('srm','get','mstSupplier/searchSrmSupplierList',data,false),
    //新增供应商信息
    //addSupplierInfo:(data) => req('srm','post','mstSupplier',data,false),
    //编辑供应商信息
    editSupplierInfo:(data) => req('srm','put','mstSupplier',data,false,true),
    //停用/启用供应商信息
    delSupplierInfo:(data) => req('srm','delete','mstSupplier',data,false),
    //根据条件获取sap供应商信息
    getSAPSupplierInfo:(data) => req('srm','get','mstSupplier/searshSupplierSAP',data,false),//
    //根据条件获取sap供应商详细信息
    getSAPSupplierInfoDetails:(data) => req('srm','get','mstSupplier/getSRMSupplierDetail',data,false),
    //根据供应商编号获取SAP相关信息
    getRalSAPInfoBySupplierCode:(data) => req('srm','get','mstSupplier/getSupplierSAPByCode',data,false),//
    //供应商激活账号操作、添加默认角色
    accountRegister:(data) => req('auth','get','account/register',data,true),
    addAuth:(data) => req('auth','post','authUser?userkey=' + data.userkey + '&tokenkey=' + data.tokenkey,data,false),
    getAccountListByConditiion:(data) => req('auth','post','account/list',data,false),
    addUserGroup:(data) => req('auth','post','authUserGroupUser',data,false),
    //根据供应商编号获取相关应付人员和采购组织信息
    //getSapInfoBySupplierCode:(data)=>req('srm','get','mstSupplier/getSupplierSAPByCode',data,false),
    //新保存供应商信息接口
    addSupplierInfo:(data) => req('srm','post','mstSupplier/insertSAPSupplier',data,false),
    //根据当前登录用户获取供应商详情
    getSupplierDetailByAccount:(data) => req('srm','get','mstSupplier/getSDetailByAct',data,false),
    //激活主账号操作(新--20181103)
    acviteMainAccount:(data)=>req('srm','post','ralAccountSupplier/activeMainAccount',data,false),
    //编辑供应商信息(新--20181103)
    modifySupplier:(data) =>req('srm','post','mstSupplier/modifyMstSupplier',data,false),
    //更新供应商到sap
    syncSupplierToSap:(data)=>req('srm','post','mstSupplier/synchronizeSAPToSRM',data,false),
    //获取供应商公司视图
    getCompanyView:(data)=>req('srm','get','ralSupplierCompany/getRalSupplierCompanyListBySupplierId',data,true),
    //获取供应商采购视图
    getPurchaseOption:(data)=>req('srm','get','ralSupplierPurchase/getRalSupplierPurchaseListBySupplierId',data,true),
    //我的对账单管理--查询
    //getAccountList:(data) => req('srm','get','tblGoodsAccountbill/getMyAccountList',data,false),
    //获取实物对账查询
    getMyGoodList:(data) => req('srm','get','tblGoodsAccountbill/getMyGoodsList',data,false),
    //获取当前登录账号所属权限公司/所属权限供应商
    getAuthInfo:(data)=>req('srm','get','mstCompany/getComSupplierInfo',data,false),//mstCompany/getCompanySRMByCode getAuthCompany
    //获取当前选择的公司编号查询权限供应商
    getAuthSupplierByCompanyCode:(data) => req('srm','get','ralSupplierCompany/getSupperByCompanyCode',data,false),
    //删除实物对账
    delAccountListSelectedInfo:(data)=>req('srm','delete','tblGoodsAccountbill/del',data,false,true),
    //我的对账管理-新增实物对账-引入入库记录查询
    getStorageInfo:(data) => req('srm','get','storagerecord/getStorageRecord',data,false),
    //获取实物对账单号
    getPhysicalNo:(data) => req('srm','get','tblGoodsAccountbill/getGoodsNoFromSender',data,false),//tblGoodsAccountbill/getGoodAccountNO
    //供应商提交/保存事务对账单
    postPhysicalAccount:(data) => req('srm','post','tblGoodsAccountbill/saveGoodsAccountbill',data,false),
    //根据实物对账单号获取明细信息
    getGoodsDetails:(data) => req('srm','get','tblGoodsAccountbill/getMyGoodsDetailTest',data,false),//   getMyGoodsDetail
    //删除实物对账单选中行
    deleteGoodsDetails:(data) => req('srm','delete','tblGoodsAccountmx/delmx',data,false),
    //获取实物对账单明细信息
    getGoodsAccountMxmsg:(data)=>req('srm','get','tblGoodsAccountmxmsg/getGoodsAccountmxmsg',data,false),
    //应付人员保存、确认、退回操作
    putPhysicalAccount:(data) => req('srm','put','tblGoodsAccountbill/csGoodsAccount',data,false,true),
    //实物对账金额调整
    phyAdjustMoney:(data) => req('srm','get','tblAdjustbill/getAdjustBill',data,false),
    //明细确认
    phyDetailConfirm:(data)=>req('srm','put','tblGoodsAccountmx/modify',data,false,true),
    //实物对账反确认
    phyReconfirm:(data) => req('srm','post','tblGoodsAccountbill/reconfirm',data,false),

    //会计对账单--查询
    getMyAccountList:(data)=>req('srm','get','tblAccountbill/getMyAccountList',data,false),
    //会计对账单--删除
    deleteMyAccountList:(data) => req('srm','delete','tblAccountbill/deleteAccountbill',data,false,true),
    //获取会计对账单号
    getAccountNo:(data) => req('srm','get','tblAccountbill/getAccountNoFromSender',data,false),
    //保存/提交会计对账单
    postAccountBill:(data)=>req('srm','post','tblAccountbill/saveAccountbill',data,false),
    //获取会计对账单明细
    getAccountDetails:(data)=>req('srm','get','tblAccountbill/getAccountDetail',data,false),
    //确认/退回会计对账
    putAccountBill:(data) => req('srm','put','tblAccountbill/confirmAccount',data,false,true),
    //删除会计对账单明细
    delAccountDetails:(data) => req('srm','delete','tblAccountmx/deleteAccountmx',data,false,true),
    //获取供应商余额
    getSupplierBalance:(data) => req('srm','get','tblAccountbill/getSupplierBalanceBySAP',data,false),
    //供应商是否有对账权限
    getAccountPermission:(data)=>req('srm','get','mstSupplier/accountPermission',data,true),
    //获取供应商所属客户签署模式
    getSupplierCompanyBySuppCompId:(data)=>req('srm','get','ralSupplierCompany/getRalSupplierCompanyBySuppCompId',data,false),
    //采购协同-差异调整列表
    getAdjustbill:(data) => req('srm','get','tblAdjustbill/getAdjustbillList',data,false),
    //采购协同-新增差异调整
    insertAdjustbill:(data) => req('srm','post','tblAdjustbill/insertAdjustbill',data,false),
    //采购协同-编辑差异调整
    editAdjustbill:(data) => req('srm','put','tblAdjustbill/editAdjustbill',data,false,true),
    //采购协同-获取订单信息
    getPurOrdInfo:(data) => req('srm','get','tblAdjustbill/getPurOrdInfoSAP',data,false),
    //采购协同-禁用或启用差异调整
    editAdjustbillAble:(data) => req('srm','delete','tblAdjustbill/able',data,false),
    //财务协同-差异调整审批
    review:(data) => req('srm','put','tblAdjustbill/review',data,false),

    //添加实物对账差异明细信息
    addDiffDetailInfo:(data) => req('srm','post','tblGoodsAccountmxmsg/addGoodsAccountmxmsg',data,false),
    //查询实物对账差异说明信息
    getDiffDetailInfo:(data) => req('srm','get','tblGoodsAccountmxmsg/addGoodsAccountmxmsg',data,false),
    
    
    /*                                电子签相关接口   begin      */
    
    //回写供应商电子签状态    
    updateSignFlag:(data)=>req('srm','post','evisa/registerWBack',data,false),
    
    //撤回电子签
    recallSignFlag:(data)=>req('srm', 'post', 'evisa/sign',data,false),

    //电子签用户注册
    registerVisa:(data)=>req('srm','post','evisa/RegisterVisa',data,false),
    
    //获取登录token
    getESignToken:(data)=>req('srm','get','evisa/GetToken',data,false),

    //根据账号获取对应供应商信息
    getSupplierByAct:(data)=>req('srm','get','mstSupplier/getSDetailByAct',data,false),

    //单点登录到电子签
    eSignLogin:(data)=>req('srm','post','SSOSign/SignLogin',data,false),
    
    //发起签署
    BeSign:(data) => req('srm','get','evisa/BeSign',data,false),
    //签署失败改变单据状态(未审核)
    updateAccountState:(data) => req('srm','post','tblAccountbill/accountbillStatus',data,false),
    
    //后台生成pdf
    uploadSignFile:(data) => req('srm','post','tblAccountbill/uploadSignFile',data,false,true),
    //线下手动点签署完成
    signCompleted:(data) => req('srm','put','evisa/reconciliation',data,false,true),
    //线下签署打印对账函
    getPrintAccountData:(data) => req('srm','get','tblAccountbill/letterInfo',data,true),
    //获取打印数据token
    getPrintToken:(data) => req('srm','get','vesta/genid',data,true),
    /*                                 电子签相关接口  end       */

    //子账号管理-查询
    getSup_userList:(data) => req ('srm','get','ralAccountSupplier/getAccountList',data,false),
    //子账号管理-启用或停用
    reuseOrdel_user:(data) => req ('srm','delete','ralAccountSupplier/disableAccount',data,false,true),
    //子账号管理-新增
    addSup_user:(data) => req ('srm','post','ralAccountSupplier/addregisterAccount',data,false,true),
    //子账号管理-编辑
    editSup_user:(data) => req ('srm','put','ralAccountSupplier/editAccount',data,false,true),
    //子账号管理-角色列表
    getRoleList:(data) => req ('srm','get','ralAccountSupplier/getRoleList',data,false),
    //子账号管理-运输方列表
    getMstTransportList:(data)=>req('srm','post','mstTransport/list',data,false,true),
    //子账号管理-授权
    addRole:(data) => req ('srm','post','ralAccountSupplier/grantRole',data,false,true),
    //子账号管理-推送设置-获取推送类型列表
    getPushUserList:(data) => req ('srm','get','ralAccountSupplier/getRalNotifyUserList',data,false),
    //子账号管理-推送设置-保存设置   
    savePushSetting:(data) => req ('srm','post','ralAccountSupplier/saveRalNotifyUser',data,false),    
    //文件签署列表-查询
    SignList:(data) => req ('srm','get','tblAccountbill/getAccountSignList',data,false),
    //文件签署预览
    getSignDetail:(data) => req ('srm','get','tblAccountbill/getSignDetail',data,false),
    
    //文件签署上传
    signUpload:(data) => fileUpload(data),
    //文件签署下载
    fileDownload:(data) => req ('srm','get','upload/download',data),

    //获取合同列表
    getContractList:(data) => req ('srm','get','mstContract/getContractList',data),

    //保存合同
    saveContract:(data) => req ('srm','post','mstContract/saveContract',data,false,true),
    //保存合同
    reviewContract:(data) => req ('srm','post','mstContract/reviewContract',data,false,true),
    
    //点击次数记录接口
    addClickHistory:(data) => req('srm','post','tblFunctionUseHistory/addTblFunctionUseHistory',data,false),
    // 获取审批意见
    getSignOption: (data) => req('srm','get','tblBillAuditHistory',data,false), 
    // 获取验证码
    getAuthCode: (data) => req('srm','post','ralAccountSupplier/generateVerify',data,false), 
    // 校验验证码
    validaAuthCode: (data) => req('srm','post','ralAccountSupplier/checkVerify',data,false), 
    // 判断是否是运输方
    validIstransport:(data) => req('srm','get','ralAccountSupplier/isTransportAccount',data,true), 
    /*****************************************我的桌面**********************************************/
    getNoticeInfo:(data) => req('srm','get','tblNotice/queryTblNoticeInfo',data,false),
    setHasRead:(data) => req('srm','get','tblNoticeCheckHistory/setRead',data,true),     // 设置公告已读
    saveNoticeInfo:(data) => req('srm','post','tblNotice/saveTblNoticeInfo',data,false,true),
    editNoticeInfo:(data) => req('srm','put','tblNotice/modifyTblNoticeInfo',data,false,true),
    delNoticeInfo:(data) => req('srm','put','tblNotice/delTblNoticeInfo',data,false,true),
    saveAttachment:(data) => req('srm','post','tblAttachment/saveTblAttachmentInfo',data,false,true),
    delAttachment:(data) => req('srm','put','tblAttachment/deleteTblAttachmentInfo',data,false,true),
    getFilePath:(data) => req('fileService','post','upload/downFile',data,false,true,false),
    personalReset:(data) => req('srm','post','ralAccountSupplier/personalReset',data,false),
    getBusinessList:(data) => req('srm', 'get', 'tblBusinessMessage/getTblBusinessMessageList',data,false),
    updateBusinessState:(data) => req('srm', 'get', 'tblBusinessMessage/updateState', data, true),
    getAccountBillById:(data)=> req('srm', 'get', 'tblAccountbill/getTblAccountbillById', data,true),
    getGoodsAccountBillById:(data)=> req('srm', 'get', 'tblGoodsAccountbill/getTblGoodsAccountbillById',data,true),
    getPurchaseOrderBillById:(data)=> req('srm', 'get', 'tblPurchaseorderbill/getTblPurchaseorderbillById',data,true),
    /*****************************************基础数据**********************************************/
    getMaterialBarcodeList:(data) => req('srm','get','ralMaterialBarcode/getMaterialBarcodeList',data,false),
    saveMaterialBarcode:(data) => req('srm','post','ralMaterialBarcode/saveMaterialBarcode',data,false,true),
    delMaterialBarcode:(data) => req('srm','delete','ralMaterialBarcode/delMaterialBarcode',data,false,true),
    getMatName:(data) => req('srm','get','ralMaterialBarcode/getMatNameBySAP',data,false),
    getBatchMatName:(data) => req('srm','get','ralMaterialBarcode/getBatchMatNameBySAP',data,false),
    saveBatchMaterial:(data) => req('srm','post','ralMaterialBarcode/saveBatchMaterialBarcode',data,false,true),
    grantCommunicationAuth: (data) => req('srm','post','srmServicePersonnel/grantCommunicationAuth',data,false,true),  // 供应商cc沟通权限授权
    // 上线配置查询列表
    getOnlineSettingList:(data) => req('srm','get','tblOnlineSetting',data,false),
    // 保存上线配置
    saveOnlineSetting:(data) => req('srm','post','tblOnlineSetting',data,false),
    //  批量导入上线配置  
    batchOnlineSetting:(data) => req('srm','post','tblOnlineSetting/batch',data,false),  
    //  批量上传上线配置  
    batchOnlineUpload:(data) => req('srm','post','tblOnlineSetting/upload',data,false),
    //  保存供应商公司视图数据  
    saveSupplierCompany:(data) => req('srm','post','ralSupplierCompany/saveRalSupplierCompany',data,false), 
    //  筛选所关联供应商(公司)数据  
    filterAuthData:(data) => req('srm','get','tblOnlineSetting/onlineScreen',data,false),
    //  上线配置拓展  
    extendOnlineSet:(data) => req('srm','post','tblOnlineSetting/expand',data,false),

    /*****************************************质检协同**********************************************/
    queryQuaRes:(data) => req('srm','post','srmTblInsBill/queryPage',data,false),
    queryRecord:(data) => req('srm','post','srmTblInsBill/queryRecord',data,false),

    /*****************************************采购协同**********************************************/
    getPurNPublishList:(data) => req('srm','get','tblPurchaseorderbill/getPurNPublishList',data,false),
    getPurPublistList:(data) => req('srm','get','tblPurchaseorderbill/getPurPublishList',data,false),
    getPurDetailsOfSap:(data) => req('srm','get','tblPurchaseorderbill/getPurDetailOfSap',data,false),
    getPurDetailOfSrm:(data) => req('srm','get','tblPurchaseorderbill/getPurDetailOfSrm',data,false),
    publishPurOrder:(data) => req('srm','post','tblPurchaseorderbill/publishPurFromSap',data,false,true),
    recyclePurOrder:(data) => req('srm','post','tblPurchaseorderbill/recyclePurFromSrm',data,false,true),
    getConfirmedPurOrder:(data) => req('srm','get','tblPurchaseorderbill/getConfirmPur',data,false),
    confirmPurOrder:(data) => req('srm','post','tblPurchaseorderbill/purConfirm',data,false,true),
    returnPurOder:(data)=>req('srm','delete','tblPurchaseorderbill/returnPurchaseorderbill',data,false,true),
    getGoodsBillProcess:(data)=>req('srm', 'get', 'tblGoodsAccountbill/goodsbillProcess',data,false),
    getAccountBillProcess:(data)=>req('srm', 'get', 'tblAccountbill/accountbillProcess',data,false),
    getMstPurchaseorgList:(data) => req('srm', 'get', 'tblPurchaseorderbill/getMstPurchaseorgList',data,false),
    getPurOrdMxOfSap:(data) => req('srm', 'get', 'tblAdjustbill/purOrdMxOfSap', data, false),
    getOrderChange:(data) => req('srm', 'get', 'tblPurchaseorderbill/orderChangeRecord', data, false),
    /*****************************************物流协同**********************************************/
    getDeliveryList:(data) => req('srm','get','tblDeliverybill/getDeliverybillList',data,false),
    deleteDeliveryList:(data) => req('srm','delete','tblDeliverybill/delDeliverybill',data,false,true),
    getDeliverybillDetail:(data) => req('srm','get','tblDeliverybill/getDeliverybillDetail',data,false),
    deleteDeliveryDetail:(data) => req('srm','delete','tblDeliverymx/delDeliverymx',data,false,true),
    saveDelivery:(data) => req('srm','post','tblDeliverybill/saveDeliverybill',data,false,true),
    getWaitDeliveryPurOrder:(data) => req('srm','get','tblPurchaseorderbill/getWaitDeliverPur',data,false),
    auditDeliveryBill:(data) => req('srm','post','tblDeliverybill/reviewDeliverybill',data,false,true),
    getDeliveryNo:(data) => req('srm','get','tblDeliverybill/getDeliveryNoByNumberDevice',data,false),
    saveBarCode:(data)=>req('srm','post','ralOrderBarcode/save',data,false,true),
    getBarCodes:(data) => req('srm','get','ralOrderBarcode/queryBarcodes',data,false),
    getMaterialInfo:(data) => req('srm','get','ralOrderBarcode/queryMaterielInfo',data,false),
    getAntiPurList:(data) => req('srm','get','tblPurchaseorderbill/getAntiPurList',data,false),
    updatePrintTime:(data) =>req('srm','post','ralOrderBarcode/updatePrinttime',data,false,true),
    importQueryOrder:(data) =>req('srm','get','tblPurchaseorderbill/importQueryPur',data,false),
    importDeliverybill:(data) =>req('srm','post','tblDeliverybill/importDeliverybill',data,false),
    getBarcodeList:(data) =>req('srm','get','tblDeliverymx/barcodeListByDelivery',data,false),
    delBarCode:(data) =>req('srm', 'post', 'ralOrderBarcode/delWaterBarcode', data,false),//删除防伪码
    getCodePrintData:(data) =>req('srm', 'get', 'ralOrderBarcode/barcodeInfo', data,false),//获取条码打印模板数据
    saveWebCodeInfo:(data) => req('srm', 'post', 'ralOrderBarcode/barcodeInfoToDatabase',data,false),//网页暂存打印数据
    cancelAppoint:(data) => req('srm', 'post', 'srmTblAppointment/cancelAppointment',data,false,true),//取消预约
    queryResidue:(data) => req('srm', 'get', 'srmTblAppointment/queryResidue',data,true), //查询剩余可预约数

    getQuarterRecord: (data) => req('srm', 'post', 'quarterlyStatementLetter/getFromSap',data,false,true), //从sap获取季度对账记录
    queryQuarterPage: (data) => req('srm', 'post', 'quarterlyStatementLetter/queryPage',data,false,true),//获取季度对账函列表
    addQuarterRecord: (data) => req('srm', 'post', 'quarterlyStatementLetter/save',data,false,true),//新增季度对账函
    delQuarterRecord:(data) => req('srm','delete',`quarterlyStatementLetter/delete?ids=${data}`,'',false,true),//删除季度对账函
    sendQuarterLetter:(data) => req('srm','put',`quarterlyStatementLetter/edit`, data ,false,true),//删除季度对账函
    printLetter:(data) => req('srm','get',`quarterlyStatementLetter/printLetter/${data}`,'',false,true),//打印季度对账函



    // 获取送货单或拣配单打印数据
    getDeliveryPrintData:(data) => req('srm', 'get', 'tblDeliverybill/deliverybillInfo',data,true),   
    /*****************************************报表中心**********************************************/
    //采购订单追踪报表
    getPurchaseReport:(data) => req('srm','get','tblPurchaseorderbill/getReportList',data,false),
    //送货单列表查询
    getDeliveryReportList:(data) => req('srm','get','tblDeliverybill/getDeliveryListAtReport',data,false),
    //入库单列表查询
    getInstockList:(data) => req('srm','get','tblPurchaseorderbill/getStorageList',data,false),
    // 实物对账单报表统计个数
    getGoodsBills:(data) => req('srm','get','tblGoodsAccountbill/goodsbillQy',data,false),
    // 实物对账单报表详情列表
    getGoodsBillsTab:(data) => req('srm','get','tblGoodsAccountbill/goodsbillListRep',data,false),
    //  会计对账单报表统计个数
    getAccountBills:(data) => req('srm','get','tblAccountbill/accountbillQy',data,false),
    //  会计对账单报表列表
    getAccountBillsTab:(data) => req('srm','get','tblAccountbill/accountbillListRep',data,false),
    //系统运行每日单据量查询
    queryInvoiceStat:(data) => req('srm', 'get', 'tblDeliverybill/billTotalReport',data,false),
    //送货看板
    getDeliveryReport:(data) => req('srm', 'get', 'tblDeliverymx/deliveryBoardList',data,false),
    //  防伪码查询报表
    getSecurityCodeReport:(data) => req('srm', 'get', 'ralOrderBarcode/getBarcodesReportList',data,false),
    //系统运行每日用户登录查询
    queryUserStat:(data) => req('srm', 'get', 'report/userLoginSitution', data, false),
    //系统运行每日用户登录查询接口新
    queryUserLoginReport:(data) => req('srm', 'get', 'userLogin/getUserLoginReport', data, false),
    //获取供应商和公司上线情况
    getStatistData:(data) => req('srm', 'get', 'report/statisticsAmount', data,false),
    //获取会对情况报表
    getAccountBillReport:(data) => req('srm', 'get', 'tblAccountbill/getAccountBillReportList', data,false),
    //获取对账排行信息
    getReconciliationRank:(data)=>req('srm','get','report/reconciliationRank',data,false),
    //获取供应商使用情况信息
    getUseSituationData:(data)=>req('srm','get','report/useSituation',data,false),
    //获取功能使用统计列表
    getFunctionReport:(data)=>req('srm','get','tblFunctionUseHistory/getFunctionUseHistoryReportList',data,false),
    //获取功能下拉内容
    getFunctionOptions:(data)=>req('srm','get','tblFunctionUseHistory/getFunctionUseHistorySelect',data,false),
    //获取实物对账明细报表
    getGoodsAccountDetailReport:(data)=>req('srm','get','tblGoodsAccountmx/physicalReport',data,false),

    //tblDeliverybill/deliverybillDetailList
    getPurOrderInfo:(data)=>req('srm','get','tblDeliverybill/deliverybillDetailList',data,false),

    /*****************************************送货计划**********************************************/
    // 获取采购订单
    getOrderList:(data) => req('srm','get','tblPurchaseordermx/orderListAtPlan',data,false),
    // 获取计划单号  
    getPlanNo:(data) => req('srm','get','tblDeliveryplanbill/planNo',data,false),
    //获取计划列表  
    getDelPlanList:(data) => req('srm','get','tblDeliveryplanbill',data,false),
    //保存送货计划  
    saveDelPlan:(data) => req('srm','post','tblDeliveryplanbill',data,false),
    //获取计划详情
    getPlanDetail:(data) => req('srm','get','tblDeliveryplanbill/detail',data,false),
    // 批量删除计划
    deletedDelPlan:(data) => req('srm','delete','tblDeliveryplanbill',data,false,true),
    // 删除计划单明细
    deletePlanDetail:(data) => req('srm','delete','tblDeliveryplanmx',data,false,true),
    // 选择送货计划单创建送货单
    getDeliveryPlan:(data) => req('srm','get','tblDeliveryplanmx/deliveryplanmxList',data,false),
    //弃审送货单
    abandonDelivery:(data) => req('srm','post','tblDeliverybill/abandonDeliverybill',data,false),
    //获取预约卸货时段列表
    getBookTimeLimit:(data)=>req('srm','post','tblWmsTimelimit/list',data,false),
    /*****************************************模板管理**********************************************/
    // 根据模板编码获取模板信息   
    getTemplateDetail:(data) => req('srm','get','tbl_template',data,false),
    // 获取模板文件流   
    templateDownload:(data) => req('srm','get','download2',data,true,false,false,true),
    // 获取模板列表
    getTemplateList:(data) => req('srm','get','tbl_template/list',data,false),
    // 获取模板详情   
    getTemplateInfo:(data) => req('srm','get','tbl_template/getTemplate',data,false),
    // 保存模板信息
    saveTemplate:(data) =>req('srm','post','tbl_template',data,false),
    // 删除模板
    deleteTemplate:(data) =>req('srm','delete','tbl_template',data,false,true),
    /*****************************************业务类型配置**********************************************/
    // 动态加载业务类型父级编码   
    getParentsNodes:(data) =>req('srm','get','mstBusType/getLevelMstBusType',data,false),
    // 新增业务类型   
    addBusType:(data) =>req('srm','post','mstBusType/addMstBusType',data,false),
    // 获取业务类型列表   
    getBusTypeList:(data) =>req('srm','get','mstBusType/getMstBusTypeList',data,false),
    // 修改业务类型（编辑）   
    updateBusType:(data) =>req('srm','post','mstBusType/updateMstBusType',data,false),
    // 启用或停用业务类型
    changeBusState:(data) =>req('srm','get','mstBusType/enableMstBusType',data,false),
    /*****************************************推送配置**********************************************/
    // 新增推送配置  
    addPushSetting:(data) =>req('srm','post','tblNotifySettingController/addTblNotifySetting',data,false),
    // 获取推送配置列表   
    getPushList:(data) =>req('srm','get','tblNotifySettingController/getTblNotifySettingList',data,false),
    // 修改推送配置（编辑）   
    updatePushSetting:(data) =>req('srm','post','tblNotifySettingController/updateTblNotifySetting',data,false),
    // 启用或停用推送配置
    changePushState:(data) =>req('srm','get','tblNotifySettingController/enableTblNotifySetting',data,false),
    /*****************************************获取打印模板数据**********************************************/
    // 获取送货单打印模板数据   
    getDeliveryTempData:(data) =>req('srm','get','tblDeliverybill/deliverybillInfo',data,false),
    /*****************************************问题中心**********************************************/
    // 获取问题类型树   
    getQuestionTypeTree:(data) =>req('srm','get','tblEnum/tree',data,false),
    // 获取问题列表  
    getQuestionList:(data) =>req('srm','get','tblQuestion',data,false),
    // 保存问题  
    saveQuestion:(data) =>req('srm','post','tblQuestion',data,false),
    // 删除问题  
    deletedQuestion:(data) =>req('srm','delete','tblQuestion',data,true,true),
    // 问题详情  
    getQuestionDetail:(data) =>req('srm','get','tblQuestion/detail',data,false),
     /*****************************************枚举管理**********************************************/
    // 获取问题列表  
    getEnumList:(data) =>req('srm','get','tblEnum',data,false),
    // 保存问题  
    saveEnum:(data) =>req('srm','post','tblEnum',data,false),
    // 停用/问题  
    enableEnum:(data) =>req('srm','post','tblEnum/able',data,false),
    /*****************************************全局配置**********************************************/
    // 获取配置项的值 
    getParamsValue:(data) =>req('srm','get','paramValue/getParamValueListByParamCode',data,false),
    // 保存修改的配置  
    saveParamsValue:(data) =>req('srm','post','paramValue/saveParamValue',data,false),
    /*****************************************加码申请**********************************************/
    // 获取加码物料详情
    applyCodeMaterielInfo:(data) =>req('srm','get','barcodeApply/getMaterielInfo',data,false),
    // 新增或修改加码申请
    saveBarcodeApply:(data) =>req('srm','post','barcodeApply/saveTblBarcodeApply',data,false),
    // 获取申请条码详情信息
    getApplyBarcodeDetail:(data) =>req('srm','get','barcodeApply/getTblBarcodeApplyById',data,true),
    // 审核或退回申请
    updateApplyBarcodeState:(data) =>req('srm','post','barcodeApply/updateBillState',data,false),
    // 获取申请列表数据
    getApplyBarcodeList:(data) =>req('srm','get','barcodeApply/getTblBarcodeApplyList',data,false),
     // 查询条码清单
    queryBarcodeList:(data) =>req('srm','get','ralOrderBarcode/queryBarcodes',data,false),
    // 删除条码清单
    deletedBarcode:(data) =>req('srm','post','barcodeApply/delTblBarcodeApply',data,false),
    /*****************************************送货计划物料配置**********************************************/
    // 保存计划物料
    savePlanMaterial:(data) =>req('srm','post','ralPlanMaterial',data,false),
    // 获取计划物料列表
    getPlanMaterialList:(data) =>req('srm','get','ralPlanMaterial',data,false),
    // 批量删除计划物料
    deletedPlanMaterial:(data) =>req('srm','delete','ralPlanMaterial',data,false,true),
    // 导入保存计划物料
    batchSavePlanMaterial:(data) =>req('srm','post','ralPlanMaterial/batch',data,false),
    /*****************************************送货计划(新)**********************************************/
    // 保存送货计划
    saveDeliveryPlan:(data) =>req('srm','post','tblDeliveryplanbills',data,false),
    // 获取送货计划列表数据
    getDeliveryListData:(data) =>req('srm','get','tblDeliveryplanbills',data,false),
    // 获取送货计划详情
    getDeliveryPlanDetail:(data) =>req('srm','get','tblDeliveryplanbills/detail',data,true),
    // 批量删除送货计划
    deleteDeliveryPlan:(data) =>req('srm','delete','tblDeliveryplanbills',data,true,true),
    // 单条删除送货计划明细
    deleteDeliveryPlanItem:(data) =>req('srm','delete','tblDeliveryplanmxs',data,true,true),
    // 导入送货计划明细
    importDeliveryPlan:(data) =>req('srm','post','tblDeliveryplanbills/import',data,false),
    // 批量保存差异说明
    savePlanDiffContent:(data) =>req('srm','post','tblDeliveryplanmeno',data,false),
    // 获取差异详情
    getPlanDiffContent:(data) =>req('srm','get','tblDeliveryplanmeno',data,true),
    // 批量保存送货明细
    saveDeliveryPlanDetail:(data) =>req('srm','post','tblDeliveryplanmxs',data,false),
    // 关闭明细行
    closeDeliveryPlanDetail:(data) =>req('srm','post','tblDeliveryplanmxs/single',data,false),
    // 选择送货计划
    selectedDeliveryPlan:(data) =>req('srm','get','tblDeliveryplanmxs',data,false),
    //送货计划选择采购订单
    selectPurchaseList:(data)=>req('srm','post','tblDeliveryplanbills/purordmxAtPlan',data,false),
    //供应商选择运输方
    selectTransportList:(data)=>req('srm','post','mstTransport/list',data,false),
    // 供方创建计划单撤回计划单
    withdrawDeliveryPlan:(data) => req('srm', 'get', '/tblDeliveryplanbills/transportWithdraw', data, true),
    /*****************************************区域管理配置**********************************************/
    //查询区域
    searchRegion:(data) => req('srm', 'get', 'tblArea/getAreaList', data, true),
    //查询采购方对应公司列表
    getCompanyList:(data) => req('srm', 'get', 'tblArea/getCompanyList', data, true),
    //保存区域
    saveRegion:(data) => req('srm', 'post', 'tblArea/saveArea', data, false),
    //停&启用区域
    changeRegionState:(data) => req('srm', 'put', 'tblArea/changeAreaState', data, false, true),

    /*****************************************时段管理配置**********************************************/
    //查询时段
    searchInterval:(data) => req('srm', 'get', 'tblArea/getAreaList', data, true),
    //保存时段
    saveInterval:(data) => req('srm', 'post', 'tblArea/saveArea', data, false),
    //停&启用时段
    changeIntervalState:(data) => req('srm', 'put', 'tblArea/changeAreaState', data, false),
    
    /*****************************************供应商计划配置**********************************************/
    //查询供应商
    searchSupplierPlan:(data) => req('srm', 'get', 'tblSupplierplanSetting/getSupplierPlanList', data, true),
    //查询全部供应商名字
    getSupplierList:(data) => req('srm', 'get', 'tblSupplierplanSetting/getSupplierList', data, true),
    //保存供应商计划
    saveSupplierPlan:(data) => req('srm', 'post', 'tblSupplierplanSetting/saveSupplierPlan', data, false),
    //停&启用供应商计划
    changeSupplierPlanState:(data) => req('srm', 'put', 'tblSupplierplanSetting/changeState', data, false, true),
    // 判断供应商是否启用计划配置
    judgeSupplierIsplan:(data) => req('srm', 'get', 'tblSupplierplanSetting/isPlanSupplier', data,true),
    /*****************************************第三方管理配置**********************************************/
    //查询第三方
    searchTransport:(data) => req('srm', 'get', 'mstTransport/getTransportList', data, true),
    //保存/新增第三方
    saveTransport:(data) => req('srm', 'post', 'mstTransport/saveTranSport', data, false),
    //停&启用第三方
    changeTransportState:(data) => req('srm', 'put', 'mstTransport/changeState', data, false, true),

    /*****************************************报表中心配置**********************************************/
    //查询
    searchAccountMxReport:(data) => req('srm', 'post', 'tblAccountmx/getAccountmxList', data, false),
    //查询审批意见
    getExamineDetail:(data) => req('srm', 'get', 'tblAccountmx/getExamineDetail', data, true),

    /*****************************************对账看板配置**********************************************/
    //获取实物饼图列表
    getGooChartData:(data) => req('srm', 'get', 'tblGoodsAccountbill/getGoodsBillCount', data, true),
    //获取会计饼图列表
    getAccChartData:(data) => req('srm', 'get', 'tblAccountbill/getAccountBillCount', data, true),
    //实物已/未对账
    getGooBillData:(data) => req('srm', 'get', 'tblGoodsAccountbill/goodsbillListRep', data, true),
    //会计已/未对账
    getAccBillData:(data) => req('srm', 'get', 'tblAccountbill/accountbillListRep', data, true),

    /*****************************************采购员管理**********************************************/
    //查询采购员
    searchPurcheaser:(data) => req('srm', 'get', 'purchaser/getPurchaserList', data, true),
    //新增采购员
    addPurcheaser:(data) => req('srm', 'post', 'purchaser/add', data, false),
    //编辑采购员
    editPurcheaser:(data) => req('srm', 'put', 'purchaser/updatePurchaser', data, false, true),
    //停用&启用采购员
    isProhibitPurchaser:(data) => req('srm', 'put', 'purchaser/changeState', data, false, true),
    //获取全部采购员
    getAllPurchaserList:(data) => req('srm', 'get', 'purchaser/getMstPurchaserList', data, true),
    /*****************************************采购员工厂配置**********************************************/
    //查询
    searchPurchaserFactory:(data) => req('srm', 'get', 'ralPurchaserPlant/getPurchaserPlantList', data, true),
    //获取工厂列表
    getFactoryList:(data) => req('srm', 'get', 'mstPlant/getPlantList', data, true),
    //根据账号获取工厂列表
    getFactoryListBySapNum:(data) => req('srm', 'get', 'mstPlant/getPlantList', data, true),
    //新增
    addPurcheaserFactory:(data) => req('srm', 'post', 'ralPurchaserPlant/add', data, false),
    //编辑
    editPurcheaserFactory:(data) => req('srm', 'post', 'ralPurchaserPlant/updatePurchaserPlant', data, false),
    //停用&启用采购员工厂
    isProhibitPurchaserFactory:(data) => req('srm', 'put', 'ralPurchaserPlant/changeState', data, false, true),
    /*****************************************物料组管理**********************************************/
    //查询
    searchMaterials:(data) => req('srm', 'post', 'mstMatgroup/getMstMatgroupList', data, true),
    //同步
    synchronizationData:(data) => req('srm', 'post', 'mstMatgroup/syncMatgroup', data, true),
    //获取全部物料
    getAllMaterials:(data) => req('srm', 'get', 'mstMatgroup/getMatgroupList', data, true),
    //物料组对应的采购员-手动
    getMaterialsOfPurchaser:(data) => req('srm', 'get', 'ralDistributeMatgroup/getRalDistMatgroupList', data, true),
    //物料组对应的采购员-自动派单规则
    getMaterialsOfPurchaserAutoRule:(data) => req('srm', 'get', 'mstAutoDistributeSetting/getAutoDistributeList', data, true),
    /*****************************************物料组排除管理**********************************************/
    //查询
    searchMaterialsExcluse:(data) => req('srm', 'get', 'mstMatgroupExclude/getMatgroupExcludeList', data, true),
    //新增
    addMaterialsExcluse:(data) => req('srm', 'post', 'mstMatgroupExclude/add', data, false),
    //删除
    deleteMaterialsExcluse:(data) => req('srm', 'put', 'mstMatgroupExclude/deleteMatgroupExclude', data, false, true),
    /*****************************************自动派单规则设置**********************************************/
    //查询规则
    searchAutoRule:(data) => req('srm', 'get', 'mstAutoDistributeSetting/getAutoDistributeList', data, true),
    //新增
    addAutoSendLeafleRule:(data) => req('srm', 'post', 'mstAutoDistributeSetting/add', data, false),
    //编辑
    editAutoSendLeafleRule:(data) => req('srm', 'put', 'mstAutoDistributeSetting/updateAutoDistribute', data, false, true),
    //删除
    deleteAutoSendLeadfletRule:(data) => req('srm', 'delete', 'mstAutoDistributeSetting/delete', data, false, true),
    //未选列表
    getNoSelectedAutoRuleList:(data) => req('srm', 'post', 'mstMatgroup/getAutoDistributeMatgroupList', data, false),
    //已选列表
    getAutoRuleList:(data) => req('srm', 'get', 'mstAutoDistributeSetting/getAutoDistributeList', data, true),
    //已选列表，不分页
    getAllAutoRuleList:(data) => req('srm', 'get', 'mstAutoDistributeSetting/getAutoDistributes', data, true),
    /*****************************************派单员物料组配置**********************************************/
    //查询规则
    searchPurchaserMaterials:(data) => req('srm', 'get', 'ralDistributeMatgroup/getRalDistMatgroupList', data, true),
    //新增
    addPurchaserMaterials:(data) => req('srm', 'post', 'ralDistributeMatgroup/add', data, false),
    //编辑
    editPurchaserMaterials:(data) => req('srm', 'put', 'ralDistributeMatgroup/updateRalDistMatgroup', data, false, true),
    //删除
    deletePurchaserMaterials:(data) => req('srm', 'delete', 'ralDistributeMatgroup/delete', data, false, true),
    //全部列表
    getAllPurchaserMaterialsList:(data) => req('srm', 'get', 'mstMatgroup/getMstMatgroups', data, true),
    //未选列表
    getNoSelectedPurchaserMaterialsList:(data) => req('srm', 'post', 'mstMatgroup/getDistributeMatgroupList', data, false),
    //已选列表
    getSelectedPurchaserMaterialsList:(data) => req('srm', 'get', 'ralDistributeMatgroup/getRalDistMatgroupList', data, true),
    //已选列表，不分页
    getAllSelectedPurchaserMaterialsList:(data) => req('srm', 'get', 'ralDistributeMatgroup/getRalDistMatgroups', data, true),
    /*****************************************采购申请清单**********************************************/
    //查询采购申请清单
    searchPuechaserApplyList:(data) => req('srm', 'get', 'purchaseRequest/getPurchaseRequests', data, true),
    //查询采购申请清单-任务分派
    getPuechaserApplyListByTask:(data) => req('srm', 'get', 'purchaseRequest/getPurchaseRequestList', data, true),
    //获取派单员方法
    getSendFormPeople:(data) => req('srm', 'get', 'purchaser/getPurchaserList', data, true),
    //同步采购申请单
    syncPuechaserApplyList:(data) => req('srm', 'post', 'purchaseRequest/manualSyncPurchaseRequests', data, false),
     //同步采购订单
     puechaserApplyOrder:(data) => req('srm', 'post', 'srmRalPurchaseRequest/sync', data, false),
    /*****************************************任务分派**********************************************/
    //新增任务
    addTask:(data) => req('srm', 'post', 'srmTblTask/add', data, false),
    //任务列表
    getTaskList:(data) => req('srm', 'get', 'srmTblTask/getTaskList', data, true),
    //撤回任务
    recallTask:(data) => req('srm', 'put', 'srmTblTask/revokeTask', data, false, true),
    //转派历史记录
    getTaskHistoryLog:(data) => req('srm', 'post', 'srmTblTask/getTransferHistoryList', data, false, true),
    /*****************************************我的待办**********************************************/
    //待办列表
    getToDoList:(data) => req('srm', 'get', 'mstMyTodoTask/getTodoList', data, true),
    //确认待办
    confirmTask:(data) => req('srm', 'post', 'mstMyTodoTask/confirm', data, false),
    //拒绝待办
    refuseTask:(data) => req('srm', 'put', 'mstMyTodoTask/refuse', data, false, true),
    //转派待办
    transferTask:(data) => req('srm', 'put', 'mstMyTodoTask/transfer', data, false, true),
    /*****************************************同步记录**********************************************/
    getSynchronizationRecordList:(data) => req('srm', 'get', 'syncHistory/getSyncHistoryList', data, true),
    /*****************************************我的已办**********************************************/
    //已办列表
    getDoneList:(data) => req('srm', 'get', 'mstMyDoneTask/getDoneList', data, true),
    //撤回已办
    recallDoneList:(data) => req('srm', 'put', 'mstMyDoneTask/withdraw', data, false, true),
    /*****************************************担保人管理**********************************************/
     //新增担保人信息
    saveGuarantorInfo:(data) => req('srm', 'post', 'srmMstGuarantor', data, false),
     //获取担保人列表
    getGuarantorList:(data) => req('srm', 'post', 'srmMstGuarantor/list', data, false),
      //停用/启用担保人
    unableGuarantor:(data) => req('srm', 'delete', 'srmMstGuarantor', data, false, true),
    /*****************************************需求计划**********************************************/
    //需求计划列表
    getDemandList:(data) => req('srm', 'post', 'srmTblRequestbill/list', data, false),
    //保存需求计划
    saveDemandData:(data) => req('srm', 'post', 'srmTblRequestbill', data, false),
    //获取需求计划详情
    getDemandPlanDetail:(data) => req('srm', 'get', 'srmTblRequestbill/detail', data, true),
    //删除需求计划
    deletedDemandPlan:(data) => req('srm', 'put', 'srmTblRequestbill', data, false, true),
    //按需求创建送货计划》获取未完成需求计划明细
    getDemandPlanMxs:(data) => req('srm', 'post','srmTblRequestmx', data, false),
    //按需求创建送货计划》获取物料关联未完成订单
    getIncompleteOrder:(data) => req('srm', 'get', 'tblPurchaseorderbill/incompleteOrderRequestPlan', data, true),
    /*****************************************采购组排除**********************************************/
    //获取采购组排除列表
    getPurGroupExcluse:(data) => req('srm', 'post', 'purgroupExclude/getPurgroupExcludeList', data, false),
    //新增采购组排除
    addPurGroupExcluse:(data) => req('srm', 'post', 'purgroupExclude/add', data, false),
    //停启用采购组排除
    isProhibitPurGroupExcluse:(data) => req('srm', 'put', 'purgroupExclude/disableOrEnable', data, false, true),
    // 打印申请单接口
    getPrintPurOrdData:(data) =>req('srm','get','mstMyTodoTask/printUnconfirmedRequest',data,true),
    // 获取对账单明细报表数据
    getAccountSumReport:(data) =>req('srm','post','tblAccountmx/queryBillList',data,false),
    // 查询入库明细
    getInstockBills:(data) =>req('srm','post','tbl_instockmx/queryInStockDetail',data,false),
    // 服务人员列表
    getBySupplierList:(data) =>req('srm','post','srmServicePersonnel/query',data,false),
    // 新增服务人员 /save
    addServicePersonnel:(data)=>req('srm','post','srmServicePersonnel/save',data,false),
    //编辑保存服务人员
    editServicePersonnel:(data)=>req('srm','put','srmServicePersonnel/edit',data,false,true),
    // 获取相关服务人员
    getServicePersonnelBySupplier:(data)=>req('srm','get','srmServicePersonnel/getBySupplier',data,false),
    // 开通CC账号
    registerCc:(data)=>req('srm','post','srmServicePersonnel/registerCc',data,false),
    // 停用启用服务人员
    switchStateServicePersonnel:(data)=>req('srm','post','srmServicePersonnel/switchState',data,false),
    // 申购单申请列表
    getPurchaseRequestList:(data)=>req('srm','get','srmMatPurchaseRequest/getPurchaseRequest',data,false),
     // 申购单导入
     importRequest:(data)=>req('srm','post','srmMatPurchaseRequest/savePurchaseRequest',data,false),
       // 获取审核人
       getReviewer:(data)=>req('srm','get','msgSendAccount/baseDataList',data,true),
      //  修改审核状态
      submiteviewer:(data) => req('srm','put','srmMatPurchaseRequest/updatePurchaseRequest',data,false,true),
    //   获取工厂
    getFactory:(data)=>req('srm','get','msgSendAccount/baseDataList',data,true),
    //   获取推送消息列表
    getMsgSendAccount:(data)=>req('srm','get','msgSendAccount/getMsgSendAccount',data,false),
     // 新增信息推送
     addNewsPush:(data)=>req('srm','post','msgSendAccount/saveMsgSendAccount',data,false),
      // 编辑信息推送
      editNewsPush:(data)=>req('srm','put','msgSendAccount/updateMsgSendAccount',data,false,true),
    // 创建sap采购申请
    createSapRequest:(data)=>req('srm','post','srmMatPurchaseRequest/createSapRequest',data,false),
    // 导出功能列表数据
    exportedRequest:(data)=>req('srm','post','srmMatPurchaseRequest/exported',data,false),

}
api = Object.assign(
    api,
    srm,
    aul
);
export default api;
